// index.js
// 获取应用实例
const app = getApp()
Page({
  data: {
    // 轮播图
    swiperImgUrls: ['/images/lbt_03.jpg','/images/lbt_03.jpg','/images/lbt_03.jpg'],
    swiperIndex: 0,
    // 导航
    navigators:[
      {
        name: '商会简介',
        image: '/images/icon1.jpg',
        url: '/pages/member/index'
      },
        {
        name: '商会架构',
        image: '/images/icon1.jpg',
        url: '/pages/shjj/index'
      },
        {
        name: '加入商会',
        image: '/images/icon3.jpg',
        url: '/pages/join/index'
      },
        {
        name: '投票活动',
        image: '/images/icon4.jpg',
        url: '/pages/tp/index'
      },
        {
        name: '活动宣传',
        image: '/images/icon5.jpg',
        url: '/pages/hdxc/index'
      },
        {
        name: '政策法规',
        image: '/images/icon6.jpg',
        url: '/pages/zcfg/index'
      },
      {
        name: '会员动态',
        image: '/images/icon7.jpg',
        url: '/pages/hydt/index'
      },
      {
        name: '会员地址',
        image: '/images/icon8.jpg',
        url: '/pages/hydz/index'
      },
    ],
    // 商会动态数据
    chamberDynamic:{
      id:1,
      title:'这里是一部分文字内容',
      date:'3个月',
      image:'/images/mudimg.png',
      jf:'X'
    },
    // 商会文章动态数据
    chamberArticle:{
      id:1,
      title:'这里是一部分文字内容',
      date:'3个月',
      image:'/images/mudimg.png',
      jf:'X'
    },
    // 商会资讯动态数据
    chamberInfo:{
      id:1,
      title:'这里是一部分文字内容',
      date:'3个月',
      image:'/images/mudimg.png',
      jf:'X'
    },
      tabs: [
        {
        id: 0,
        name: "商会概况",
        img: "/images/icon1.jpg",
        url: "/pages/member/index"
        },
        {
          id: 1,
          name: "商会章程",
          img: "/images/icon2.jpg",
          url: "/pages/member_shzc/index"
        },
        {
          id: 2,
          name: "商会文化",
          img: "/images/icon3.jpg",
          url: "/pages/member_shwh/index"
        },
        {
          id: 3,
          name: "换届选举法",
          img: "/images/icon4.jpg",
          url: "/pages/member_hjxjf/index"
        },
      ]
  },
  swiperChange(e) {
    const that = this;
    that.setData({
      swiperIndex: e.detail.current,
    })
  },

})
